package com.example.mapper.one;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    User login(@Param("username") String username,@Param("password") String password);
    User getUserById(@Param("uId") String uId);
    List<User> getAllUser();
    int delUser(@Param("userId") Integer userId);
    int addUser(@Param("userName") String userName,@Param("password") String password);
}
